const express = require("express")
var history = require('connect-history-api-fallback');

const app = express();
app.use(history())
app.use(express.static(__dirname + '/static'))

app.get('/person', (req, res) => {
    res.send({
        name: "tom",
        age: 18
    })
})

app.listen(5005, (err) => {
    if (!err) {
        console.log("服务启动成功")
    }
})